var app = getApp();
var shop_id;
Page({

  /**
   * 页面的初始数据
   */
  data: {
  
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    shop_id = options.shop_id;
  },

  formSubmit: function(e){
    var post_data = e.detail.value;
    post_data.openid = app.globalData.openid;
    post_data.shop_id = shop_id;
    app.ihttpPost("https://www.58zltc.com/api.php/Jiaoyu/baomingAdd", post_data, res=>{
      if (res.data.err_code > 0){
        app.iModel(res.data.err_msg);
      }else{
        wx.showToast({
          title: '提交成功！'
        })
      }
    })
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  },
  backto: function () {
    wx.navigateBack({
      
    })
  }
})